/** 
  @举例模板
    <div id="" class="schoolForm f mb20" style="gap:0 20px;">
      <div class="f1">
        <LabelRender class="" required label="姓名" desc="学生的姓名"></LabelRender>
        <el-input v-model="formObj.name" v-limit="[3,50]" minlength="3" maxlength="50" v-required placeholder="请输入" />
      </div>
      <div class="f1">
        <LabelRender class="" required label="学校" desc="学生所在的学校"></LabelRender>
        <el-select v-model="formObj.scene" placeholder="请选择" v-required style="width: 100%">
          <el-option v-for="item in sceneList" :key="item.id" :label="item.id" :value="item.id" />
        </el-select>
      </div>
      <div class="f1">
        <LabelRender class="" required label="年龄" desc="学生的年龄"></LabelRender>
        <el-input v-model="formObj.age" v-custom="e => {if(e > 10) { return ['不得超过10'] }}"  v-int v-required placeholder="请输入" />
      </div>
    </div>
    <div class="f mb20">
      <ButtonRender @click="clickMe" type="primary" className="mr20" view="3d" width="60px" height="32px" radius="8px" :autoLoading="true" :disabled="false">保存</ButtonRender>
      <ButtonRender @click="reset" type="error" className="" view="3d" width="60px" height="32px" radius="8px" :autoLoading="true" :disabled="false">重置</ButtonRender>
    </div>
  @举例js
    const {formObj, reset, validate} = _.useFormRender({ name: '', school: '', age: '' }, '.schoolForm') // 参数1：初始化入参 + 表单选择器
    async function clickMe(){
      await validate(async () => {
        // 基础校验通过编写业务代码。或者再做复杂校验
        await _.wait(100) 
        console.log(formObj.value)
      })
    }
*/
import { ref } from "vue"
export default function (props, emit) {
  
  return {
    
    emit,
  }
}